<!--
 * @Description: 
 * @Author: 赵华宇
 * @Date: 2025-04-22 17:21:29
 * @LastEditors: 赵华宇
 * @LastEditTime: 2025-04-22 19:40:06
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            /* 版心居中要求 盒子要有宽度*/
            width: 200px;
            height: 200px;
            background-color:pink;
            /* 内容与盒子边缘之间 */
            /* padding:20px; */
            padding-top:40px;
            padding-bottom: 30px;
            padding-left: 20px;
            padding-right: 40px;
            /* border:1px solid black; */
            /* border:1px dashed black; */
            /* border:3px dotted black; */
            border-top: 1px solid #000;
            border-bottom: 3px dotted #bd9999;
            border-left: 5px dashed #d41c1c;
            border-right: 1px solid #1cb45e;
            /* 出现在盒子外面，绕开两个盒子之间的距离*/
            /* margin: 50px; */
            /* margin-top: 20px;
            margin-bottom: 30px;
            margin-left: 40px;
            margin-right: 20px; */
            /* margin:20px,50px,30px,40px; */
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <div>div标签</div>
</body>
</html>